package com.kaifamiao.demo.d0802;

import java.util.Objects;

public class Demo03 {

    public static void main(String[] args) {


        Student stu = new Student();

        Student stu1 = new Student();

        // Student 类需要重写 equals 方法

        boolean flag = Objects.equals(stu, stu1);
        System.out.println(flag);

        test(null);
        test(new Student());
    }

    public static void test(Student stu){
        if (Objects.isNull(stu)){
            return;
        }

    }
}
